<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${ctxPath}/data/list" method="post">
        <input type="hidden" name="pageSize" value="${dataList.pageSize!}">
        <input type="hidden" name="pageCurrent" value="${dataList.pageNum!}">

        <div class="bjui-searchBar">
            <label>资料标题：</label>
            <input type="text" value="${pojo.dataTitle!}" name="dataTitle" class="form-control" data-rule="length(~10)">&nbsp;
            <label>资料分类名称：</label>
            <input type="text" value="${pojo.categoryName!}" name="categoryName" class="form-control" data-rule="length(~10)">&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
            &nbsp;
            <div class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">复选框-批量操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        <li><a href="${ctxPath}/data/delete" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="ids" data-group="ids">删除<font color="red">选中</font>行</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">
        <thead>
        <tr>
            <th align="center" width="35">编号</th>
            <th align="center" width="150">资料标题</th>
            <th align="center" width="150">资料简介</th>
            <th align="center" width="60">资料封面</th>
            <th align="center" width="100">资料文件地址</th>
            <th align="center" width="60">资料分类ID</th>
            <th align="center" width="80">资料分类名</th>
            <th align="center" width="150">创建时间</th>
            <th align="center" width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
            <th align="center" width="50">操作</th>
        </tr>
        </thead>
        <tbody>
        @for(data in dataList.list){
        <tr data-id="${dataLP.index}">
            <td align="center">${data.id!}</td>
            <td align="center">${data.dataTitle!,xss}</td>
            <td align="center">${data.dataBrief!,xss}</td>
            <td align="center"><img src="${data.dataCover!'N/A',xss}" style="max-width: 90px;max-height: 100px"></td>
            <td align="center">${data.dataFile!"N/A",xss}</td>
            <td align="center">${data.categoryId!"N/A",xss}</td>
            <td align="center">${data.categoryName!"N/A",xss}</td>
            <td align="center">${data.createTime!"N/A",dateFormat="yyyy-MM-dd HH:mm:ss"}</td>
            <td align="center"><input type="checkbox" name="ids" data-toggle="icheck" value="${data.id!}"></td>
            <td align="center">
                @if(data.id == 52 || data.id == 53 || data.id == 54 || data.id == 59 || data.id == 60 || data.id == 61) {
                @}else {
                <a href="${ctxPath}/data/delete?ids=${data.id!}" class="btn btn-red" data-toggle="doajax" title="删除" data-confirm-msg="确定要删除该行信息吗？">删除</a>
                @}
            </td>
        </tr>
        @}
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="120">120</option>
                <option value="150">150</option>
            </select>
        </div>
        <span>&nbsp;条，共 ${dataList.total!} 条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="${dataList.total!}" data-page-size="30" data-page-current="1">
    </div>
</div>